

        <g:set var="entityName" value="${message(code: 'score.label', default: 'Score')}" />
         <g:form method="post" action="batchSave" >
            
           <input type="hidden" name="id" value="${exam?.id}">  
              <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="batchSave" value="${message(code: 'default.button.create.label', default: 'Save')}" /></span>
             </div>
            <div class="list"> 
                <table> 
                    <tbody>
                    <g:each in="${history}" status="i" var="studentInstance">
                        <g:if test="${i % 10 == 0}">
                        <tr class="bottomColumn"> 
                             <th></th>
                             <th>学生</th>
                             <th>${exam?.course}</th>
                             <th></th>
                         </tr>
                        </g:if>

                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                            <td></td>
                            <td>${studentInstance[0]}
                            <input type="hidden" name="students" value="${studentInstance[0].id}"> 
                            
                            </td> 
                         
                            <td>  
                            <input type="hidden" name="scoreid${studentInstance[0].id}" value="${studentInstance[1]?.id}"> 
                            <input type="text" name="score${studentInstance[0].id}" value="${studentInstance[1]?.score}" size="5"> 
                            </td> 
                            <td></td>
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
             <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="batchSave" value="${message(code: 'default.button.create.label', default: 'Save')}" /></span>
             </div>
             </g:form>
